/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.isd.pool.modelo;

import java.io.Serializable;
import javax.persistence.Embeddable;

/**
 *
 * @author ctrosch
 */
@Embeddable
public class BasesCondicionesAdicionalesPK implements Serializable {
    
    private Integer nroPool;
    private double nroitm;

    public BasesCondicionesAdicionalesPK() {
    }

    public BasesCondicionesAdicionalesPK(Integer nroPool, double nroitm) {
        this.nroPool = nroPool;
        this.nroitm = nroitm;
    }

    public Integer getNroPool() {
        return nroPool;
    }

    public void setNroPool(Integer nroPool) {
        this.nroPool = nroPool;
    }

    public double getNroitm() {
        return nroitm;
    }

    public void setNroitm(double nroitm) {
        this.nroitm = nroitm;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final BasesCondicionesAdicionalesPK other = (BasesCondicionesAdicionalesPK) obj;
        if ((this.nroPool == null) ? (other.nroPool != null) : !this.nroPool.equals(other.nroPool)) {
            return false;
        }
        if (Double.doubleToLongBits(this.nroitm) != Double.doubleToLongBits(other.nroitm)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 59 * hash + (this.nroPool != null ? this.nroPool.hashCode() : 0);
        hash = 59 * hash + (int) (Double.doubleToLongBits(this.nroitm) ^ (Double.doubleToLongBits(this.nroitm) >>> 32));
        return hash;
    }
    
}
